/*
 *email: chen983@sina.com
 */
#ifndef _EXCEPTION_H__
#define _EXCEPTION_H__
#include <string>
/*
#define SQLCA_STORAGE_CLASS extern
#include <sqlca.h>
*/
using namespace std;

namespace Oracle{

class Exception
{
public:
	Exception(const string &what, int code);
	Exception(const Exception &org);
	void contruct();
	virtual ~Exception();
	Exception & operator = (const Exception &right);
	
	virtual const string &what();
	virtual int code();
	
private:
	string _what;
	int _code;
};

void error_handle(int sqlcode, const char *msg);

};
#endif
